#pragma once
#include "twitterdata.h"
#include "JSONArray.h"


class SearchResTweetData :
	public TwitterData
{
public:
	SearchResTweetData(void);
	~SearchResTweetData(void);

	void setData(std::istream &is);
	std::string getData();

	//handle the result, need to be called after setData
	unsigned long getResSize();
	std::string   getResTweetID(unsigned long index);
	std::string   getResTweetCreatedTime(unsigned long index);
	std::string   getResTweetFromUserID(unsigned long index);
	std::string   getResTweetText(unsigned long index);
private:
	std::string   getResTweetInfo(unsigned long index, std::string tag);
	JSONArray * _result;
};
